using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using webapp4U.BOL;

namespace webapp4U.UI.Controls
{
    public partial class Controls_MenuLeft : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GetImageSupport();
        }

        protected string GetImageSupport()
        {
            int intHour = Globals.ConvertToInt32(DateTime.Now.ToString("HH"));
            if(intHour>=8 && intHour <=16)
                return "<img border=\"0\" src="+ Globals.ImagesUrl() + "online.gif />";
            else
                return "<img border=\"0\" src=" + Globals.ImagesUrl() + "offline.gif />";
        }

      
    }
}